/**
 * @description 获取当前时间：早上|上午|下午|晚上
 * @returns {string}
 */
export const getTime = () => {
  let message = ''
  const hours: number = new Date().getHours()
  if (hours <= 9 && hours >= 5) {
    message = '早上'
  } else if (hours <= 12) {
    message = '上午'
  } else if (hours <= 18) {
    message = '下午'
  } else {
    message = '晚上'
  }
  return message
}
